package com.ruoyi.hospital.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 排班信息对象 yl_schedule
 *
 * @author ruoyi
 * @date 2022-02-23
 */
public class YlSchedule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 排班ID */
    private Long schedulingId;

    /** 医生ID */
    @Excel(name = "医生ID")
    private Integer doctorId;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date start;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date end;

    /** 号源数 */
    @Excel(name = "号源数")
    private Long num;

    /** 班次 */
    @Excel(name = "班次")
    private String classes;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private Long revision;

    public String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSchedulingId(Long schedulingId)
    {
        this.schedulingId = schedulingId;
    }

    public Long getSchedulingId()
    {
        return schedulingId;
    }
    public void setDoctorId(Integer doctorId)
    {
        this.doctorId = doctorId;
    }

    public Integer getDoctorId()
    {
        return doctorId;
    }
    public void setStart(Date start)
    {
        this.start = start;
    }

    public Date getStart()
    {
        return start;
    }
    public void setEnd(Date end)
    {
        this.end = end;
    }

    public Date getEnd()
    {
        return end;
    }
    public void setNum(Long num)
    {
        this.num = num;
    }

    public Long getNum()
    {
        return num;
    }
    public void setClasses(String classes)
    {
        this.classes = classes;
    }

    public String getClasses()
    {
        return classes;
    }
    public void setRevision(Long revision)
    {
        this.revision = revision;
    }

    public Long getRevision()
    {
        return revision;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("schedulingId", getSchedulingId())
                .append("doctorId", getDoctorId())
                .append("start", getStart())
                .append("end", getEnd())
                .append("num", getNum())
                .append("classes", getClasses())
                .append("revision", getRevision())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
